package com.yl.module.property.domain.vo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 资产类型表 VO
 * @author makejava
 * @date 2024-10-23 15:54:16
 */
@Data
@ApiModel(value = "PropertyTypeTreeVO", description = "资产类型VO")
public class PropertyTypeTreeVO implements Serializable {
	private static final long serialVersionUID = 127642864205985543L;

    @ApiModelProperty(value = "资产类型表-主键id")
    private Integer id;

	@ApiModelProperty(value = "三方资产类型唯一标识 例如华为的设备类型唯一标识")
    private String tripartitePropertyTypeId;

	@ApiModelProperty(value = "父类id 如果是根节点 父类id就是0")
    private Integer parentId;

	@ApiModelProperty(value = "名称")
    private String name;

	@ApiModelProperty(value = "颜色码")
	private String colorCode;

	@ApiModelProperty(value = "rgb颜色码")
	private ColorRgbVO rgb;

	@ApiModelProperty(value = "是否开启保养提醒 0否 1是 默认0")
	private Integer isMaintain;

	@ApiModelProperty(value = "保养周期(月)")
	private Integer maintainPeriod;

	@ApiModelProperty(value = "下次保养日期")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime nextTimeMaintain;

	@ApiModelProperty(value = "保养状态 无保养1 即将保养2 保养超期3")
	private Integer maintainState;



	@ApiModelProperty(value = "子类")
	private List<PropertyTypeTreeVO> child;
}

